# 序列：内容连续，有序，可使用下标索引的一类数据容器

# 序列[起始下标：结束下标：步长]
# 步长也就是每次输出第步长数

my_list = [0, 1, 2, 3, 4, 5, 6]
ret1 = my_list[1:4:1]
print(ret1)

my_turple = (0, 1, 2, 3, 4, 5, 6)
ret2 = my_turple[::1]
print(ret2)

my_string = "0123456"
ret3 = my_string[::2]
print(ret3)

my_string1 = "0123456789"
ret4 = my_string1[::-1]
print(ret4)

my_list2 = [1, 3, 5, 7, 9]
ret5 = my_list2[4:1:-1]
print(ret5)
